package com.mega32k.mevila.item.sword;

import com.mega32k.mevila.tab.MevilaMainTab;
import com.mega32k.mevila.tab.MevilaToolTab;
import com.mega32k.mevila.util.ItemInit;
import jdk.nashorn.internal.ir.Block;
import net.minecraft.client.resources.I18n;
import net.minecraft.item.ItemStack;
import net.minecraft.item.SwordItem;
import net.minecraft.util.text.ITextComponent;
import net.minecraft.util.text.StringTextComponent;
import net.minecraft.util.text.TextFormatting;
import com.mega32k.mevila.util.MevilaTier;
import net.minecraft.item.Item;
import net.minecraft.item.Rarity;

public class MevilaSwordItem extends SwordItem {
    public static final Block block = null;

    public MevilaSwordItem() {
        super(MevilaTier.MEVILA_TIER, 4, -2.4F, (new Item.Properties())
                .group(MevilaToolTab.mevilaToolTab)
                .rarity(ItemInit.RMEVILA)
                .isImmuneToFire()
        );
    }

    @Override
    public ITextComponent getDisplayName(ItemStack p_200295_1_) {
        return new StringTextComponent(I18n.format("item.mevila.mevilaSword"));
    }

}